package com.pan.feign;

import com.pan.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.CookieValue;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@FeignClient("stock-server")
public interface StockFeign {

    @ResponseBody
    @PostMapping("/stock/reduce/{id}/{reduceCount}")
    public Result reduceGoodsCountNoCookie( String adminTicket,
                                   @PathVariable("id") Long id,
                                   @PathVariable("reduceCount") Long reduceCount);
}
